import request from '@/utils/httpRequest'

export function getMsgList(data) { //获取短信查询结果
  return request({
    url: `/manage/sms/find/news` + '?createTime=' + data.createTime + '&destMobiles=' + data.destMobiles,
    method: 'post',
    data
  })
}


export function getPacketsBase(params) { //获取红包雨基础配置
  return request({
    url: '/hongbao/config/get',
    method: 'get',
    params
  })
}


export function savePacketsBase(val) { //保存红包雨基础配置
  return request({
    url: '/hongbao/config/save',
    method: 'post',
    data: val || {}
  })
}

export function getPacketRainList(params) { //获取红包雨列表
  return request({
    url: '/hongbao/rain/list',
    method: 'get',
    params
  })
}

export function getPacketRainDetail(params) { //获取红包雨配置详情
  return request({
    url: '/hongbao/rain',
    method: 'get',
    params
  })
}

export function packetAction(data, method, type = 'post') { //获取红包雨列表
  return request({
    url: '/hongbao/rain' + method,
    method: type,
    data
  })
}
export function getRecord(params, method, type = 'post') { //获取红包雨列表
  return request({
    url: '/hongbao/list' + method,
    method: type,
    params
  })
}
